package com.xinqi.modules.databank.v1.manager;

import com.xinqi.common.mybatis.data.service.BaseService;
import com.xinqi.modules.databank.v1.domain.CourseInteractionSubmitEntity;
import com.xinqi.modules.databank.dto.req.InteractionSubmitQueryDTO;
import com.xinqi.modules.databank.dto.rsp.CourseInteractionSubmitResult;

import java.util.List;

/**
 * 学生答题记录-业务层
 *
 * @author dzy
 */
public interface CourseInteractionSubmitManager extends BaseService<CourseInteractionSubmitEntity> {

    List<CourseInteractionSubmitResult> findListByContentId(Long contentId);

    /**
     * 查询学生互动环节答题数据
     * @author dzy
     */
    List<CourseInteractionSubmitEntity> findStudentAnswer(Long contentId, Long partId, Long userId);

    /**
     * 查询学生互动环节答题数据
     * @author dzy
     */
    List<CourseInteractionSubmitResult> studentAnswerList(InteractionSubmitQueryDTO query);

}
